var ywlxOptions = [{key: '1', value: '首次申领'},

    {key: '99', value: '修改驾驶人联系方式', jkbz: true},
    {key: '2', value: '增加准驾车型'},
    {key: '3', value: '持军警驾驶证申领'},
    {key: '4', value: '持境外驾驶证申领'},
    {key: '5', value: '证件损毁换证', ywlx: 'C', ywyy: 'G', jkbz: true},
    {key: '6', value: '转入换证', ywlx: 'C', ywyy: 'B', jkbz: true},
    {key: '7', value: '有效期满换证', ywlx: 'C', ywyy: 'A', jkbz: true},
    {key: '67', value: '转入换证(期满)', ywlx: 'C', ywyy: 'AB', jkbz: true},
    {key: '613', value: '转入换证(遗失)', ywlx: 'C', ywyy: 'BF', jkbz: true},
    {key: '8', value: '达到规定年龄换证'},
    {key: '9', value: '自愿降低准驾车型换证'},
    {key: '10', value: '因身体条件变化降低准驾车型换证'},
    {key: '11', value: '信息变化换证'},
    {key: '12', value: '信息备案'},
    {key: '13', value: '补证', ywlx: 'C', ywyy: 'F', jkbz: true},
    {key: '14', value: '注销'},
    {key: '15', value: '注销最高准驾车型'},
    {key: '16', value: '注销实习准驾车型'},
    {key: '17', value: '恢复驾驶资格'},
    {key: '18', value: '延期换证'},
    {key: '19', value: '延期审验'},
    {key: '20', value: '延期提交身体条件证明'},
    {key: '31', value: '申请校车驾驶资格'},
    {key: '32', value: '注销校车驾驶资格'},

    {key: '21', value: '变更考试地'}

    ];

var jdcYwlxOptions = [{key: '1', value: '申请6年免检', filter: '0'},
    {key: '2', value: '补领号牌', filter: '1', jkbz: true},
    {key: '3', value: '换领号牌', filter: '1', jkbz: true},
    {key: '16', value: '互换号牌号码', filter: '1'},
    {key: '4', value: '补领行驶证', filter: '1', jkbz: true},
    {key: '5', value: '换领行驶证', filter: '1', jkbz: true},
    {key: '15', value: '补牌+补证', filter: '1'},
    {key: '6', value: '申领登记证书', filter: '1'},
    {key: '7', value: '补领登记证书', filter: '1'},
    {key: '8', value: '换领登记证书', filter: '1'},
    {key: '9', value: '申请检验合格标志', filter: '1'},
    {key: '10', value: '补领检验合格标志', filter: '1'},
    {key: '11', value: '换领检验合格标志', filter: '1'},
    {key: '201', value: '注册登记', filter: '2'},
    {key: '202', value: '注销登记', filter: '2'},
    {key: '203', value: '转移登记', filter: '2'},
    {key: '204', value: '车辆转入', filter: '2'},
    {key: '205', value: '车辆转出', filter: '2'},
    {key: '301', value: '变更登记/备案'},
    {key: '401', value: '抵押登记', filter: '4'},
    {key: '402', value: '解除抵押登记', filter: '4'},
    {key: '403', value: '质押', filter: '4'},
    {key: '404', value: '解除质押', filter: '4'},
    {key: '901', value: '修改机动车联系方式'}
];


var jdcSqyyValueMap=[
    {key:1,value:'B'},
    {key:2,value:'A'},
    {key:7,value:'B'},
    {key:8,value:'A'}
]


var jdcYwdlOptions = [
    {key: '9', value: '修改机动车联系方式', jkbz: true},
    {key: '0', value: '申请6年免检',jkbz:true},
    {key: '1', value: '机动车牌证业务'},
    {key: '2', value: '机动车注册/转移/注销/转入'},
    {key: '3', value: '机动车变更登记/备案'},
    {key: '4', value: '机动车抵押/质押'}];

var jdcBgsxOptions = [
    {key: '1', value: '变更机动车所有人姓名/名称'},
    {key: '2', value: '共同所有的机动车变更所有人'},
    {key: '3', value: '住所在车辆管理所辖区内迁移'},
    {key: '4', value: '变更联系方式'},
    {key: '5', value: '住所迁出车辆管理所管辖区域'},
    {key: '6', value: '变更后的使用性质'},
    {key: '7', value: '更换发动机'},
    {key: '8', value: '更换车身/车架'},
    {key: '9', value: '变更车身颜色'},
    {key: '10', value: '更换整车'},
    {key: '11', value: '重新打刻发动机号码'},
    {key: '12', value: '重新打刻车辆识别代号'},
    {key: '13', value: '变更身份证明名称/号码'},
    {key: '14', value: '加装肢体残疾人操纵辅助装置'}
];


//使用性质
var syxzOptions = [{value: '非营运', key: 'A'}, {value: '公路客运', key: 'B'}, {value: '公交客运', key: 'C'}, {value: '出租客运', key: 'D'}, {value: '旅游客运', key: 'E'}, {
    value: '货运',
    key: 'F'
}, {value: '租赁', key: 'G'}, {value: '警用', key: 'H'}, {value: '消防', key: 'I'}, {value: '救护', key: 'J'}, {value: '工程救险', key: 'K'}, {value: '营转非', key: 'L'}, {
    value: '出租转非',
    key: 'M'
}, {value: '教练', key: 'N'}, {value: '幼儿校车', key: 'O'}, {value: '小学生校车', key: 'P'}, {value: '初中生校车', key: 'Q'}, {value: '危化品运输', key: 'R'}, {
    value: '中小学生校车',
    key: 'S'
}, {value: '预约出租客运', key: 'T'}, {value: '预约出租转非', key: 'U'}];
//号牌种类
var hpzlOptions = [{"value": "大型汽车", "key": "01"}, {"value": "小型汽车", "key": "02"}, {"value": "使馆汽车", "key": "03"}, {"value": "领馆汽车", "key": "04"}, {
    "value": "境外汽车",
    "key": "05"
}, {"value": "外籍汽车", "key": "06"}, {"value": "普通摩托车", "key": "07"}, {"value": "轻便摩托车", "key": "08"}, {"value": "使馆摩托车", "key": "09"}, {
    "value": "领馆摩托车",
    "key": "10"
}, {"value": "境外摩托车", "key": "11"}, {"value": "外籍摩托车", "key": "12"}, {"value": "低速车", "key": "13"}, {"value": "拖拉机", "key": "14"}, {"value": "挂车", "key": "15"}, {
    "value": "教练汽车",
    "key": "16"
}, {"value": "教练摩托车", "key": "17"}, {"value": "试验汽车", "key": "18"}, {"value": "试验摩托车", "key": "19"}, {"value": "临时入境汽车", "key": "20"}, {
    "value": "临时入境摩托车",
    "key": "21"
}, {"value": "临时行驶车", "key": "22"}, {"value": "警用汽车", "key": "23"}, {"value": "警用摩托", "key": "24"}, {"value": "原农机号牌", "key": "25"}, {
    "value": "香港入出境车",
    "key": "26"
}, {"value": "澳门入出境车", "key": "27"}, {"value": "武警号牌", "key": "31"}, {"value": "军队号牌", "key": "32"}, {"value": "无号牌", "key": "41"}, {"value": "假号牌", "key": "42"}, {
    "value": "挪用号牌",
    "key": "43"
}, {"value": "大型新能源汽车", "key": "51"}, {"value": "小型新能源汽车", "key": "52"}, {"value": "其他号牌", "key": "99"}];


var qdlyOptions = [{key: 1, value: '驾校培训'}, {key: 2, value: '有驾驶经历'}, {key: 3, value: '自学直考'}, {key: 4, value: '驾驶培训'}, {key: 5, value: '全日制职业教育'},
    {key: 6, value: '最高准驾车型被注销'}, {key: 7, value: '自学直考'}, {key: 8, value: '军队驾驶证'}, {key: 9, value: '武警驾驶证'}, {key: 10, value: '香港驾驶证'},
    {key: 11, value: '澳门驾驶证'}, {key: 12, value: '台湾驾驶证'}, {key: 13, value: '外国驾驶证'},{key: 14, value: '驾校培训'}, {key: 15, value: '有驾驶经历'}, {key: 16, value: '自学直考'}];

var yyOptions = [{key: 1, value: '丢失'}, {key: 2, value: '其他'}, {key: 3, value: '本人申请'}, {key: 4, value: '死亡'}, {key: 5, value: '身体条件不适合'},
    {key: 6, value: '丧失民事行为能力'}, {key: 7, value: '其他'}, {key: 8, value: '发生交通事故造成人员死亡，承担同等以上责任'}, {key: 9, value: '连续三个计分周期不参加审验'},
    {key: 10, value: '记满12分'}, {key: 11, value: '延长的实习期内再次记6分以上但未达到12分'}, {key: 12, value: '超过有效期一年以上未换证被注销未满两年'},
    {key: 13, value: '未按规定提交体检证明被注销且机动车驾驶证在有效期内或超过有效期不满一年'},

    {key: 31, value: '本人申请'},
    {key: 32, value: '年龄条件不适合'},
    {key: 33, value: '身体条件不适合'},
    {key: 34, value: '在致人死亡或者重伤的交通事故负有责任'},
    {key: 35, value: '有严重交通违法行为'},
    {key: 36, value: '有记满12分或者犯罪记录'},
    {key: 37, value: '其他'}


];



var jdcMxyyOptions = [{key: 1, value: '丢失'}, {key: 2, value: '灭失'}, {key: 3, value: '前号牌'}, {key: 3, value: '后号牌'}, {key: 5, value: '前号牌'},
    {key: 6, value: '后号牌'}, {key: 7, value: '丢失'}, {key: 8, value: '灭失'}, {key: 9, value: '丢失'}, {key: 10, value: '灭失'}, {key: 11, value: '未获得'},
    {key: 12, value: '在登记地车辆管理所申请'}, {key: 13, value: '在登记地以外车辆管理所申请'}, {key: 14, value: '丢失'}, {key: 15, value: '灭失'}];


function getValue(arr, key) {
    for (var i in arr) {
        if (arr[i].key == key) {
            return arr[i].value;
        }
    }
    return "";
}

function getObject(arr, key) {
    for (var i in arr) {
        if (arr[i].key == key) {
            return arr[i];
        }
    }
    return {};
}


var zjcxOptions = [{key: 'M', value: 'M'}, {key: 'C1', value: 'C1'}, {
    key: 'C2',
    value: 'C2'
}, {key: 'C3', value: 'C3'}, {key: 'C4', value: 'C4'}, {key: 'B1', value: 'B1'}
    , {key: 'B2', value: 'B2'}, {key: 'A1', value: 'A1'}, {key: 'A2', value: 'A2'}, {
        key: 'A3',
        value: 'A3'
    }, {key: 'D', value: 'D'}
    , {key: 'E', value: 'E'}];


function getList(arr, filter) {
    var result = [];
    for (var i in arr) {
        if (arr[i].filter == filter) {
            result.push(arr[i]);
        }
    }
    return result;
}


var imageTypeOptions = [
    {key: 4001, value: '申请人身份证', type: '4'},
    {key: 4002, value: '代理人身份证', type: '4'},
    {key: 9999, value: '其他', type: '4'},
    {key: 3001, value: '纸质资料', type: '3'},
    {key: 9999, value: '其他', type: '3'},
    {key: 1001, value: '现场人像', type: '0'},
    {key: 9999, value: '其他', type: '0'}

];
